package com.globant.dashboard.spring;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.globant.dashboard.persist.HibernateSessionFactory;
import com.globant.dashboard.persist.UserDAO;
import com.globant.dashboard.persist.UserDAOImp;



@Configuration
public class SpringBeans{

	
	@Bean
	public UserDAO userDAO(){
		return new UserDAOImp();
	}
	
	@Bean
	public HibernateSessionFactory hibernateSessionFactory(){
		return new HibernateSessionFactory();
	}
	
}
